package com.yisen.dasan.dao;

import com.alibaba.fastjson.JSONObject;
import com.yisen.dasan.pojo.Form;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @AuthorList: LiuYiSen
 * @Date: 2020/10/30 14:09
 */
@Mapper
public interface FormMapper {
    Form getForm(@Param("id") int id);
    boolean delForm(int FormId);
    List<Map> getItem(@Param("formId") int formId, @Param("type") String type);
    Map getState(@Param("formId") int formId);
    boolean update(@Param("formId") int formId,@Param("state") int state);
    boolean updateForm(Map map);
    boolean updateFormItem(Map map);
    boolean updateFormAge(Map map);
    boolean updateFormBirthday(Map map);
    boolean updateFormCompletion(Map map);
    boolean updateFormEducation(Map map);
    boolean updateFormEmail(Map map);
    boolean updateFormField(Map map);
    boolean updateFormGender(Map map);
    boolean updateFormIphone(Map map);
    boolean updateFormMobile(Map map);
    boolean updateFormMultiple(Map map);
    boolean updateFormName(Map map);
    boolean updateFormNumber(Map map);
    boolean updateFormRadio(Map map);
    boolean updateFormSelect(Map map);
    boolean updateFormImg(Map map);

}
